<template>
	<view class="content">
		<view class="select-adr">
			<view>请先填写地址，用于商品配送</view>
			<view style="margin-left: auto;width: 154rpx;">
				<u-button text="填写地址"></u-button>
			</view>
		</view>
		<view class="pay-con">
			<image src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode="aspectFill" class="item-img"></image>
			<view class="con-right">
				<view>商品标题文字内容商品标题文字内容</view>
				<view class="con-price">
					<view>￥50.00</view>
					<view style="margin-left: auto;">
						<u-number-box v-model="value" @change="valChange"></u-number-box>
					</view>
				</view>
			</view>
		</view>
		<view class="pay-desc">
			<view class="flex-row">
				<view>商品金额</view>
				<view style="margin-left: auto;font-weight: 500;">￥50.00</view>
			</view>
			<view class="flex-row" style="margin-top: 15rpx;">
				<view>运费</view>
				<view style="margin-left: auto;font-weight: 500;">￥50.00</view>
			</view>
			<view class="flex-row" style="margin-top: 15rpx;">
				<view>合计</view>
				<view style="margin-left: auto;font-weight: 500;color: #FF3902;">￥50.00</view>
			</view>
		</view>
		<view class="pay-list">
			<u-radio-group v-model="payType" active-color="#0277DE" placement="column">
				<!-- <view class="pay-type" @tap="payType = 'wallet'">
					<image src="https://file.tbanyu.com/image/pay_balance@3x.png" style="width: 38rpx;height: 38rpx;">
					</image>
					<text style="margin-left: 15rpx;">余额支付</text>
					<view style="margin-left: auto;">
						<u-radio shape="circle" name="wallet"></u-radio>
					</view>

				</view>
				<u-line color="#D8D8D8"></u-line> -->
				<view class="pay-type" @tap="payType = 'wechat'">
					<image :src="$IMG_URL+'weChat.png'" style="width: 46rpx;height: 46rpx;">
					</image>
					<text style="margin-left: 15rpx;">微信支付</text>
					<view style="margin-left: auto;">
						<u-radio shape="circle" name="wechat"></u-radio>
					</view>

				</view>

				<u-line color="#D8D8D8"></u-line>
				<view class="pay-type" @tap="payType = 'alipay'">
					<image :src="$IMG_URL+'alipay.png'" style="width: 38rpx;height: 38rpx;">
					</image>
					<text style="margin-left: 15rpx;">支付宝支付</text>
					<view style="margin-left: auto;">
						<u-radio shape="circle" name="alipay"></u-radio>
					</view>

				</view>

			</u-radio-group>
		</view>
		<view class="detail-but">
			<view style="width: 688rpx;">
				<u-button type="primary" shape="circle" text="确定"></u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 1,
				payType: 'wallet',
			}
		},
		methods: {
			valChange() {},
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 23rpx;
		padding-bottom: calc(env(safe-area-inset-bottom) / 2 + 23rpx) !important;
	}

	.select-adr {
		width: 688rpx;
		height: 112rpx;
		background: #FFFFFF;
		border-radius: 10px;
		padding: 0 23rpx;
		font-weight: 500;
		font-size: 27rpx;
		color: #FF3902;
		display: flex;
		align-items: center;
	}

	.pay-list {
		border-radius: 10rpx;
		background: #FFFFFF;
		width: 688rpx;
		padding: 0 23rpx;
		margin-top: 23rpx;
	}

	.pay-type {

		padding: 31rpx 0;
		display: flex;
		align-items: center;
		font-size: 27rpx;
	}

	.pay-desc {
		margin-top: 23rpx;
		width: 688rpx;
		padding: 23rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		font-size: 27rpx;
		color: #000000;
	}

	.pay-con {
		margin-top: 23rpx;
		width: 688rpx;
		padding: 23rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		display: flex;
		font-size: 27rpx;
		color: #000000;

		.item-img {
			width: 154rpx;
			height: 154rpx;
			border-radius: 10rpx;
		}

		.con-right {
			margin-left: 15rpx;
			flex: 1;
			height: 154rpx;
			display: flex;
			flex-direction: column;
			font-weight: 500;
		}

		.con-price {
			color: #FF3902;
			margin-top: auto;
			display: flex;
			align-items: center;
		}
	}
</style>